package com.vehicle.controller;


import com.vehicle.service.MenuService;
import com.vehicle.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 校园车辆管理系统
 * @since 2023-05-18
 */
@RestController
@RequestMapping("/menu")
public class MenuController {


    @Autowired
    MenuService menuService;


    @GetMapping("/menuList")
    public ResultVO getMenuList(){
        return ResultVO.succ(menuService.getAllListMenu());
    }


}

